package 刷题;

import java.util.Scanner;

public class 平行四边形 {
    public static void main(String[] args) {
        /*
        A(a1,a2)
        B(b1,b2)
        C(c1,c2)
        D(d1,d2)
        AB//CD->(a1-b1)*(a1-b1)+(a2-b2)*(a2-b2)=(c1-d1)*(c1-d1)+(c2-d2)*(c2-d2)
        BC//AD->(b1-c1)*(b1-c1)+(b2-c2)*(b2-c2)=(a1-d1)*(a1-d1)+(a2-d2)*(a2-d2)
         */
        Scanner scanner=new Scanner(System.in);
        int a1=scanner.nextInt();
        int a2=scanner.nextInt();
        int b1=scanner.nextInt();
        int b2=scanner.nextInt();
        int c1=scanner.nextInt();
        int c2=scanner.nextInt();
        for (int d1 = 0; d1 < 100; d1++) {
            for (int d2 = 0; d2 < 100; d2++) {
                if ((a1-b1)*(a1-b1)+(a2-b2)*(a2-b2)==(c1-d1)*(c1-d1)+(c2-d2)*(c2-d2) && (b1-c1)*(b1-c1)+(b2-c2)*(b2-c2)==(a1-d1)*(a1-d1)+(a2-d2)*(a2-d2)){
                    System.out.println("D("+d1+","+d2+")");
                }
            }
        }
    }
}
